package com.kl.drs.core;

import java.util.List;
import java.util.Map;

public interface IBaseModel<T> {

	List<T> selectAll();

	List<T> selectByParameter(T record);
	
	T selectByPrimaryKey(Integer id);
	
	T updateBySelective(T record);
	
	T insertSelective(T record);
	
	T softDeleteByPrimaryKey(Integer id);
	
	T deleteByPrimaryKey(Integer id);
	
	int insertOneRecording(T record);
	//查询多条记录
	List<T> findList(Map<String,Object> condMap);
	//查询一条信息
	 T findOne(Map<String,Object> condMap);
	 //更新一条记录
	 int updateOne(T record);
	
}
